<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<kml xmlns="http://www.opengis.net/kml/2.2">
			<Document>
				<description>A path through all selected posts</description>
				<Style id="yellowLineGreenPoly">
				    <LineStyle>
				    	<color>7f00ffff</color>
				        <width>4</width>
				    </LineStyle>
			      	<PolyStyle>
			        	<color>7f00ff00</color>
			      	</PolyStyle>
			    </Style>
			    <Placemark>
	     			<name>Path</name>
	      			<description>Transparent green wall with yellow outlines</description>
	      			<styleUrl>#yellowLineGreenPoly</styleUrl>
	      			<LineString>
	        			<extrude>1</extrude>
	        			<tessellate>1</tessellate>
	        			<altitudeMode>absolute</altitudeMode>
	        			<coordinates>
							<xsl:for-each select="//LOCATION ">
								<xsl:value-of select="@long"/>,
								<xsl:value-of select="@lat"/>,
								2357
							</xsl:for-each>
						</coordinates>
					</LineString>
				</Placemark>
			</Document>
		</kml>
	</xsl:template>
</xsl:stylesheet>
